Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Headerless xml parsing fix #715

Merged
merged 7 commits into from
Apr 23, 2024

Conversation

lmaxyz
Copy link
Contributor

@lmaxyz lmaxyz commented Apr 19, 2024

Found out some protocols are not available because of parser.
That patch fixes parsing for headerless xml files.

Also I added couple of tests.

@@ -0,0 +1,252 @@
<protocol name="test-protocol">
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Given this test file is only used to ensure the scanner doesn't choke on it, I don't think it needs to be as big as the main one, it can be much more minimalistic I'd say.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's done, thanks.

@elinorbgr
Copy link
Member

LGTM, could you just add an entry to the changelogs of wayland-scanner and wayland-protocols-plasma to reflect those changes ?

Also, it looks like rustfmt is unhappy in the CI

@lmaxyz
Copy link
Contributor Author

lmaxyz commented Apr 20, 2024

LGTM, could you just add an entry to the changelogs of wayland-scanner and wayland-protocols-plasma to reflect those changes ?

Also, it looks like rustfmt is unhappy in the CI

Fixed fmt issues and added changes to changelogs.

@lmaxyz
Copy link
Contributor Author

lmaxyz commented Apr 22, 2024

@elinorbgr can you check it pls? Is it ok now?

Copy link
Member

@elinorbgr elinorbgr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM yes, thanks!

@elinorbgr elinorbgr merged commit 1fc7814 into Smithay:master Apr 23, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants